﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.ComponentModel.Composition;
using Kooboo.IoC;

namespace Kooboo.Commerce.Repositories
{
    [Export(typeof(IVariation))]
    public partial class ProductAttribute :  IVariation
    {

        #region IVariation Members

        IQueryable<IProductVariation> IVariation.ProductVariations
        {
            get
            {
                return this.DataContext.ProductVariations
                    .Where(i => i.VariationId == this.Id);
            }
        }

        #endregion
    }
}
